home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9102.ARJ
/
9N02107A
< prev
next >
Wrap
Text File
|
1992-07-06
|
467b
|
33 lines
/*Program to turn small letters into Caps.*/
/*R. McLaughlin*/
/*Includes*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
/*Data Structures*/
#define FALSE 0
#define FOREVER 1
#define LOWER "a"
#define UPPER "z"
#define MASK 0x20
int input;
/*Code*/
main()
{
while(FOREVER)
{
input=getchar();
if (input>LOWER)&&(input<UPPER)
{
input=input^MASK;
}
printf(input);
}
}